package com.maxie.decorate.impl;

import com.maxie.component.Coffee;
import com.maxie.component.impl.MeishiCoffee;
import com.maxie.decorate.Decorate;

public class Milk extends Decorate {
    public Milk(Coffee coffee) {
        this.coffee = coffee;
    }

    @Override
    public double getCost() {
        return coffee.getCost() + 0.5;
    }

    @Override
    public String getDescription() {
        return coffee.getDescription() + "小料：Milk。";
    }
}
